﻿""" Starting level generator
Generates a rectangular room, and places the appropriate portals depending on the
players progress.
"""

for x in xrange(11):
    for z in xrange(7):
        if x == 0 or x == 10 or z == 0 or z == 6:
            level.Tiles[x,z] = TriDTile(parentGame, Vector3(x*200, 100, z*200), TileTypes.Wall)
        else:
            level.Tiles[x,z] = TriDTile(parentGame, Vector3(x*200, 0, z*200), TileTypes.Floor)

level.Tiles[1,1] = TriDTile(parentGame, Vector3(1*200, 0, 1*200), TileTypes.Portal)
if level.TPC.Progress > 5:
	level.Tiles[3,1] = TriDTile(parentGame, Vector3(3*200, 0, 1*200), TileTypes.Earthportal)
if level.TPC.Progress > 10:
	level.Tiles[5,1] = TriDTile(parentGame, Vector3(5*200, 0, 1*200), TileTypes.Waterportal)
if level.TPC.Progress > 15:
	level.Tiles[7,1] = TriDTile(parentGame, Vector3(7*200, 0, 1*200), TileTypes.Airportal)
if level.TPC.Progress > 20:
	level.Tiles[9,1] = TriDTile(parentGame, Vector3(9*200, 0, 1*200), TileTypes.Fireportal)

level.TPC.Position = Vector3(5*200, 75, 4*200)
level.TPC.Rotation = MathHelper.Pi
        